package com.cjj.dao.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author admin
 * @since 2025-10-25
 */
@Data
@TableName("service_order")
@Accessors(chain = true)//允许链式编程
public class ServiceOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "orderId", type = IdType.AUTO)
    private Long orderId;

    @TableField("userId")
    private Long userId;

    /**
     * 订单类型
     */
    @TableField("type")
    private String type;

    /**
     * 订单状态
     */
    @TableField("status")
    private String status;// pending/reviewed/accepted/completed/canceled

    @TableField("createTime")
    private LocalDateTime createTime;

    @TableField("updateTime")
    private LocalDateTime updateTime;

    /**
     * 审核拒绝原因
     */
    @TableField("reason")
    private String reason;

    /**
     * 购买者id
     */
    @TableField("customerId")
    private Long customerId;
}
